/* 
 * File:   Document.h
 * Author: Claudio
 *
 * Created on February 25, 2013, 1:30 AM
 */

#ifndef DOCUMENT_H
#define	DOCUMENT_H

#include <vector>
#include "Page.h"
using namespace std;
namespace AAM{
class Document{
public:
    Document(){
		width = 800;
		height = 600;
	};
    void addPage(Page *p){
        pages.push_back(p);
    };
    void setPages(vector<Page*> vec){
        pages = vec;
    };

    vector<Page*> getPages(){
        return pages;
    };
    int getNumberOfPages(){
        return pages.size();
    }
    Page* getPage(int pageNumber){
        if(pageNumber>=0 && pageNumber < pages.size())
            return pages[pageNumber];
    }
	void setPageDimensions(int pageWidth, int pageHeight){
		width = pageWidth;
		height = pageHeight;
	}
	int getPageWidth(){
		return width;
	}
	int getPageHeight(){
		return height;
	}
private:
    vector<Page*> pages;
	int width,height;
};
}

#endif	/* DOCUMENT_H */

